package cn.wolfcode.luowowo.ticket.service.impl;

import cn.wolfcode.luowowo.ticket.domain.TicketOrder;
import cn.wolfcode.luowowo.ticket.mapper.TicketOrderMapper;
import cn.wolfcode.luowowo.ticket.service.ITicketOrderService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class TicketOrderServiceImpl implements ITicketOrderService {
    @Autowired
    private TicketOrderMapper ticketOrderMapper;


    @Override
    public List<TicketOrder> selectAll() {
        return ticketOrderMapper.selectAll();
    }

    @Override
    public TicketOrder get(Long id) {
        return ticketOrderMapper.selectByPrimaryKey(id);
    }

    @Override
    public void save(TicketOrder ticketOrder) {
        ticketOrderMapper.insert(ticketOrder);
    }

}
